home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
prog_gen
/
janusw.zip
/
MINMDI.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-05-16
|
1KB
|
60 lines
{ Program: MinMdi
Version: 1.00
Purpose: this minimal MDI program demonstrates how easy it is to use
a dialog as a MDI child window using tDialogWindow
Uses: BWCC.DLL, CTL3D.DLL if present.
Date: 07/01/93
Developer: Peter Sawatzki (ps)
Buchenhof 3, D58091 Hagen, Germany
CompuServe: 100031,3002
Date: Author:
07/01/93 ps written
Copyright (c) 1993 Peter Sawatzki. All Rights Reserved.
}
Program MinMdi;
{$R MinMdi.Res}
Uses
WinProcs,
oWindows,
WinTypes,
DialogWn;
{-------------------- the MDI Frame window part }
Type
paMDIWindow = ^aMdiWindow;
aMDIWindow = object(tAdvMdiWindow)
Function CreateChild: pWindowsObject; Virtual;
End;
Function aMDIWindow.CreateChild: pWindowsObject;
{-Create a new JanusDialogWindow as a MDI child }
Begin
CreateChild:= Application^.MakeWindow(New(pDialogWindow,
Init(@Self, 'Simple')))
End;
{-------------------- the Application part }
Type
tProgApp = Object(tAdvApplication)
Procedure InitMainWindow; Virtual;
End;
Procedure tProgApp.InitMainWindow;
Begin
MainWindow:= New(paMDIWindow, Init('MinMdi', LoadMenu(hInstance, 'aMenu')))
End;
Var
App: tProgApp;
Begin
With App Do Begin
Init('MinMdi');
Run;
Done
End
End.